package com.hello;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: 吴学华
 * Date: 17-9-19
 * Time: 下午1:52
 */
@RestController
public class Hello {

    @GetMapping("/")
    public String helloworld(){


        return "hello world"+new SimpleDateFormat("yyyy年MM月dd日 hh:ss:mm").format(new Date());
    }
}
